<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$title}</title>
<!-- Import google fonts - Heading first/ text second -->
<!--[if lt IE 9]>
<link href="http://fonts.useso.com/css?family=Open+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Open+Sans:700" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Droid+Sans:400" rel="stylesheet" type="text/css" />
<link href="http://fonts.useso.com/css?family=Droid+Sans:700" rel="stylesheet" type="text/css" />
<![endif]-->
<!-- Favicon and touch icons -->
<link rel="shortcut icon" href="__PUBLIC__/admin/assets/ico/favicon.ico" type="image/x-icon" />
<!-- Css files -->
<link href="__PUBLIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/jquery.mmenu.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/font-awesome.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/plugins/jquery-ui/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/style.min.css" rel="stylesheet">
<link href="__PUBLIC__/admin/assets/css/add-ons.min.css" rel="stylesheet">
<link rel="stylesheet" href="__PUBLIC__/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="__PUBLIC__/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="__PUBLIC__/kindeditor/lang/zh_CN.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
			<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
			<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	    <![endif]-->
</head>
<script>
      KindEditor.ready(function(K) {
        var uploadbutton = K.uploadbutton({
          button : K('#uploadButton')[0],
          fieldName : 'imgFile',
          url : '{:U("Upload/images")}',
          afterUpload : function(data) {
            if (data.error === 0) {
              var url = K.formatUrl(data.url, 'absolute');
              K('#url').val(url);
            } else {
              alert(data.message);
            }
          },
          afterError : function(str) {
            alert('自定义错误信息: ' + str);
          }
        });
        uploadbutton.fileBox.change(function(e) {
          uploadbutton.submit();
        });
      });
    </script>
<body>
<!-- start: Header --> 
<include file="./head" /> 
<!-- end: Header -->

<div class="container-fluid content">
<div class="row"> 
  
  <!-- start: Main Menu --> 
  <include file="./slide" /> 
  <!-- end: Main Menu --> 
  
  <!-- start: Content -->
  <div class="main sidebar-minified">
    <div class="row">
      <div class="col-lg-8">
        <div class="panel panel-default">
        <div class="panel-heading">
          <h2><i class="fa fa-indent red"></i><strong>{$title}</strong></h2>
        </div>
        <div class="panel-body">
        <form action="{:U("cate/updates")}" method="post" class="form-horizontal ">
          <input type="hidden" name="id" value="{$cate.id}">
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-small">分类名称</label>
            <div class="col-sm-6">
              <input type="text" id="input-small" name="name" class="form-control input-sm" placeholder="填写分类名称" value="{$cate.name}">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">点击金额</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="price" class="form-control" placeholder="填写点击金额" value="{$cate.price}">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">微信</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="c_weixin" class="form-control" placeholder="填写微信" value="{$cate.c_weixin}">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-normal">微信链接</label>
            <div class="col-sm-6">
              <input type="text" id="input-normal" name="c_weixin_url" class="form-control" placeholder="填写微信链接" value="{$cate.c_weixin_url}">
            </div>
          </div>

     <div class="form-group">
                <label class="col-md-2 control-label" for="email-input">缩略图</label>
                <div class="col-md-6">
                  
                 <input class="btn form-control" type="text" id="url" name="c_code_url" readonly style="  float:left; text-align:left; width:70%" value="{$cate.c_code_url}"  />
                  
                <input type="button" id="uploadButton"  class=" btn-primary dropdown-toggle"  value="缩略图上传" style="width:24%; float:left" />

                                
                </div>
              </div>


          <div class="form-group">
            <label class="col-sm-2 control-label" for="input-large">排序</label>
            <div class="col-sm-6">
              <input type="text" id="input-large" name="sort" class="form-control" placeholder="分类排序" value="{$cate.sort}">
            </div>
          </div>
          </div>
          <div class="panel-footer">
            <button type="submit" class="btn btn-sm btn-success"><i class="fa fa-dot-circle-o"></i>保存</button>
            <button type="reset" class="btn btn-sm btn-danger"><i class="fa fa-ban"></i> 重写</button>
          </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
<include file="./foot" />
</body>
</html>